package com.li.shop.controller;

import com.li.shop.domain.Product;
import com.li.shop.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;


/*
* 项目初始化的时候先初始化数据
* */
@Controller
@RequestMapping("")
public class InitController {

    @RequestMapping("")
    private String init(){
        return "before/home";
    }

}